﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegistList.aspx.cs" Inherits="Yule8xWxPromotion.XAgent.RegistList" %>

<%@ Import Namespace="System.Data" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form method="get" action="RegistList.aspx">
        <input type="text" name="word" value="<%=word %>" placeholder="关键词" />
        <button type="submit">搜索</button>
    </form>
    <%
        if (null != dtList)
        {
            Response.Write("<table border='1'>");
            Response.Write("<tr>");
            foreach (DataColumn c in dtList.Columns)
            {
                Response.Write(string.Format("<th>{0}</th>", c.ColumnName));
            }
            Response.Write("</tr>");
            object[] items;
            foreach (DataRow r in dtList.Rows)
            {
                Response.Write("</tr>");
                items = r.ItemArray;
                foreach (object v in items)
                {
                    Response.Write(string.Format("<td>{0}</td>", v));
                }
                Response.Write("<tr>");
            }
            Response.Write("<table>");
        }
    %>
</body>
</html>
